function indentRemover() {
    // 获取输入框的值
    let textData = editorInput.getValue();

    let url = "/indentRemover";

    // 发送ajax请求
    $.ajax({
        type: 'POST',
        url: url,
        data: JSON.stringify({data: textData}),
        contentType: 'application/json',
        success: function(response) {
            // 将处理后的字符串赋值给输出框
            editorOutput.setValue(response);
        }
    });
}
function Formatter() {
    // 获取输入框的值
    let textData = editorInput.getValue();

    let url = "/Formatter";

    // 发送ajax请求
    $.ajax({
        type: 'POST',
        url: url,
        data: JSON.stringify({data: textData}),
        contentType: 'application/json',
        success: function(response) {
            // 将处理后的字符串赋值给输出框
            editorOutput.setValue(response);
        }
    });
}
function format() {
    // 获取输入框的值
    let textData = editorInput.getValue();

    let url = "/format";

    // 发送ajax请求
    $.ajax({
        type: 'POST',
        url: url,
        data: JSON.stringify({data: textData}),
        contentType: 'application/json',
        success: function(response) {
            // 将处理后的字符串赋值给输出框
            editorOutput.setValue(response);
        }
    });
}
function removeFormatting() {
    // 获取输入框的值
    let textData = editorInput.getValue();

    let url = "/removeFormatting";

    // 发送ajax请求
    $.ajax({
        type: 'POST',
        url: url,
        data: JSON.stringify({data: textData}),
        contentType: 'application/json',
        success: function(response) {
            // 将处理后的字符串赋值给输出框
            editorOutput.setValue(response);
        }
    });
}
